<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <script>
      function maximum(num1, num2) {
        if (num1 > num2) {
          alert(num1)
        } else {
          alert(num2)
        }
      }
      maximum(
        Number(prompt('请输入第一个数：')),
        Number(prompt('请输入第二个数：'))
      )
    </script>
  </body>
</html>
